﻿<%@ Page Language="C#" MasterPageFile="~/Pine.Master" AutoEventWireup="true" CodeBehind="OrderConfirmation.aspx.cs" Inherits="PWA.OrderConfirmation" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style5
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

function confirmAction() {
    if(confirm('Submit your Order?')) {
        
        return true;
    }
    else {
        document.getElementById('<%=lblMessage.ClientID %>').innerHTML = "Your Order is Canceled.";
       
        
        return false;
    }
}

</script>
    <h3>
    Please Confirm Your Information:</h3><br />
    <br />
    <p class="style5">
    First Name -
        <asp:Label ID="lblFname" runat="server"></asp:Label>
    <br />
    Last Name -
        <asp:Label ID="lblLname" runat="server"></asp:Label>
    <br />
    Address -&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblAdress" runat="server"></asp:Label>
        <br />
        City -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblCity" runat="server"></asp:Label>
        <br />
        State-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblState" runat="server"></asp:Label>
    <br />
    Zip Code -&nbsp;&nbsp;&nbsp;
        &nbsp;<asp:Label ID="lblZip" runat="server"></asp:Label>
        <br />
        Phone -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblPhone" runat="server"></asp:Label>
        <br />
        <br />
        <asp:Label ID="lblOrder" runat="server"></asp:Label>
        <br />
        <br />
        <br />
        <asp:Label ID="lblMessage" runat="server" ForeColor="#FF3300" /><br />

<asp:Button ID="btnSubmit"
Text="Submit Order"
runat="server"
OnClientClick="javascript:return confirmAction();"
OnClick="btnSubmit_Click"/>
    </p>
<br />
</asp:Content>
